using UnityEngine;
using System.Collections;
using UnityEditor;

[CustomEditor(typeof(TipoExclusivo))]
public class TipoExclusivoEditor : Editor {

	// Use this for initialization
	void Start () {
	
	}
	
	public override void OnInspectorGUI()
   { 
		DrawDefaultInspector ();
	   
	   TipoExclusivo esse = (TipoExclusivo) target;
	   
	   
	   
	   if(esse.transform.parent.GetComponent(typeof(Tile)))
	   {
		   Tile tile = (Tile) esse.transform.parent.GetComponent(typeof(Tile));
		   
		   esse.transform.position = tile.transform.position + new Vector3(0,0.5f,0);
		   
		   esse.transform.localScale = new Vector3(0.05f, 0.0f, 0.05f);
	   }
   }
	
	// Update is called once per frame
	void Update () {
	
	}
}
